package com.autologistics.model;

import java.sql.Timestamp;
import java.util.HashSet;
import java.util.Set;

/**
 * Machine entity. @author MyEclipse Persistence Tools
 */

public class Machine implements java.io.Serializable {

	// Fields

	private Integer id;
	private Machineaddress machineaddress;
	private Admin admin;
	private String ipAddress;
	private Timestamp joinTime;
	private Integer state;
	private Integer numAll;
	private Integer numUsed;
	private Integer numRepair;
	private Set mediamachines = new HashSet(0);
	private Set ordertables = new HashSet(0);

	// Constructors

	/** default constructor */
	public Machine() {
	}

	/** full constructor */
	public Machine(Machineaddress machineaddress, Admin admin,
			String ipAddress, Timestamp joinTime, Integer state,
			Integer numAll, Integer numUsed, Integer numRepair,
			Set mediamachines, Set ordertables) {
		this.machineaddress = machineaddress;
		this.admin = admin;
		this.ipAddress = ipAddress;
		this.joinTime = joinTime;
		this.state = state;
		this.numAll = numAll;
		this.numUsed = numUsed;
		this.numRepair = numRepair;
		this.mediamachines = mediamachines;
		this.ordertables = ordertables;
	}

	// Property accessors

	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Machineaddress getMachineaddress() {
		return this.machineaddress;
	}

	public void setMachineaddress(Machineaddress machineaddress) {
		this.machineaddress = machineaddress;
	}

	public Admin getAdmin() {
		return this.admin;
	}

	public void setAdmin(Admin admin) {
		this.admin = admin;
	}

	public String getIpAddress() {
		return this.ipAddress;
	}

	public void setIpAddress(String ipAddress) {
		this.ipAddress = ipAddress;
	}

	public Timestamp getJoinTime() {
		return this.joinTime;
	}

	public void setJoinTime(Timestamp joinTime) {
		this.joinTime = joinTime;
	}

	public Integer getState() {
		return this.state;
	}

	public void setState(Integer state) {
		this.state = state;
	}

	public Integer getNumAll() {
		return this.numAll;
	}

	public void setNumAll(Integer numAll) {
		this.numAll = numAll;
	}

	public Integer getNumUsed() {
		return this.numUsed;
	}

	public void setNumUsed(Integer numUsed) {
		this.numUsed = numUsed;
	}

	public Integer getNumRepair() {
		return this.numRepair;
	}

	public void setNumRepair(Integer numRepair) {
		this.numRepair = numRepair;
	}

	public Set getMediamachines() {
		return this.mediamachines;
	}

	public void setMediamachines(Set mediamachines) {
		this.mediamachines = mediamachines;
	}

	public Set getOrdertables() {
		return this.ordertables;
	}

	public void setOrdertables(Set ordertables) {
		this.ordertables = ordertables;
	}

}